import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqRewardHelper } from "./SeqRewardHelper";
type int = number;
//class SMyCornucopiaInfo
    
    export  class SMyCornucopiaInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SMyCornucopiaInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.hadGetReward);
            arg1.writeInt(this.yesterdayBlessValue);
            arg1.writeInt(this.todayBlessValue);
            SeqRewardHelper.write(arg1, this.rewards);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.hadGetReward = arg1.readInt();
            this.yesterdayBlessValue = arg1.readInt();
            this.todayBlessValue = arg1.readInt();
            this.rewards = SeqRewardHelper.read(arg1);
            return;
        }

        public /* const */_type: int=85;

        public /* var */hadGetReward: int;

        public /* var */yesterdayBlessValue: int;

        public /* var */todayBlessValue: int;

        public /* var */rewards: Array<any>;

        public static /* var */_regist: SMyCornucopiaInfo;
    }

            SMyCornucopiaInfo._regist = new SMyCornucopiaInfo(true);
        